<?php
namespace Home\Controller;

use Common\Controller\HomeController;

class MessRecordController extends HomeController
{
    /**
     * 短信使用记录
     * @author Mr.Alien
     * @return string
     */
    public function index($p = 1)
    {
        $this->assign('mess',M('MessNumber')->where(array('user_id'=>session('id')))->find());
        $this->where['user_id'] = session('id');
        I('get.no') && ($this->where['no'] = array('like','%'.I('get.no').'%'));
        I('get.phone') && ($this->where['phone'] = array('like','%'.I('get.phone').'%'));
        parent::index($p); // TODO: Change the autogenerated stub
    }
}